afa9db119a29b87ef5db5732529b398473d5b7ec,app/src/main/java/com/github/miao1007/animewallpaper/utils/SquareUtils.java,SquareUtils,getRetrofit,#,154
Before Change
public static Retrofit getRetrofit() {
if (retrofit == null) {
synchronized (SquareUtils.class) {
retrofit = new Retrofit.Builder().baseUrl(ImageRepo.END_POINT_KONACHAN).client(getClient())
.addConverterFactory(GsonConverterFactory.create())
.addCallAdapterFactory(RxJavaCallAdapterFactory.create())
.build();
}
}
return retrofit;
}
}
After Change
* @return
*/
public static Retrofit getRetrofit(String url) {
return new Retrofit.Builder().baseUrl(url).client(getClient())
.addConverterFactory(GsonConverterFactory.create())
.addCallAdapterFactory(RxJavaCallAdapterFactory.create())
.build();
}
}